package com.village.zpark.service;

import com.github.pagehelper.PageInfo;
import com.village.zpark.pojo.Transportation;

import java.util.List;

public interface TransportationService {
    /**
     * 查询所有
     */
    public List<Transportation> findAll();

    /**
     *根据id查询
     */
    public Transportation findById(Integer id);

    /**
     * 新增
     */
    public int addTransportation(Transportation transportation);

    /**
     * 修改
     */
    public int updateTransportation(Transportation trailers);

    /**
     * 删除
     */
    public int deleteTransportationById(Integer id);

    /**
     * 分页查询
     */
    public PageInfo<Transportation> findPage(int page, int size, String param );
}
